package com.gs.commentvl.model;

import java.util.List;
import java.util.Map;

import org.codehaus.jackson.map.ObjectMapper;

public class Member implements DomainObject <Member> {

	private static final long serialVersionUID = 5978342536992288480L;

	private long userId;
	private String email;
	private String userName;
	private String password;
	private String fullName;
	private String description;
	private String lastLogin;
	private String status;
	private String profilePicture;
	private String myLang;
	private String ip;
	private int posts;
	private int yourViewed;
	private int youViewed;
	private int yourPostedLike;
	private int yourPostedDislike;
	private int yourPostedBrick;
	private int yourPostedEgg;
	private int yourPostedRose;
	private int points;
	private boolean verified;
	private List<String> badges;


	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(String lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getProfilePicture() {
		return profilePicture;
	}

	public void setProfilePicture(String profilePicture) {
		this.profilePicture = profilePicture;
	}

	public String getMyLang() {
		return myLang;
	}

	public void setMyLang(String myLang) {
		this.myLang = myLang;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPosts() {
		return posts;
	}

	public void setPosts(int posts) {
		this.posts = posts;
	}

	public int getYourViewed() {
		return yourViewed;
	}

	public void setYourViewed(int yourViewed) {
		this.yourViewed = yourViewed;
	}

	public int getYouViewed() {
		return youViewed;
	}

	public void setYouViewed(int youViewed) {
		this.youViewed = youViewed;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public boolean isVerified() {
		return verified;
	}

	public void setVerified(boolean verified) {
		this.verified = verified;
	}

	public int getYourPostedLike() {
		return yourPostedLike;
	}

	public void setYourPostedLike(int yourPostedLike) {
		this.yourPostedLike = yourPostedLike;
	}

	public int getYourPostedDislike() {
		return yourPostedDislike;
	}

	public void setYourPostedDislike(int yourPostedDislike) {
		this.yourPostedDislike = yourPostedDislike;
	}

	public int getYourPostedBrick() {
		return yourPostedBrick;
	}

	public void setYourPostedBrick(int yourPostedBrick) {
		this.yourPostedBrick = yourPostedBrick;
	}

	public int getYourPostedEgg() {
		return yourPostedEgg;
	}

	public void setYourPostedEgg(int yourPostedEgg) {
		this.yourPostedEgg = yourPostedEgg;
	}

	public int getYourPostedRose() {
		return yourPostedRose;
	}

	public void setYourPostedRose(int yourPostedRose) {
		this.yourPostedRose = yourPostedRose;
	}

	public List<String> getBadges() {
		return badges;
	}

	public void setBadges(List<String> badges) {
		this.badges = badges;
	}

	@Override
	public Map<String, String> toHashMap() {
		ObjectMapper objMapper = new ObjectMapper();
		return objMapper.convertValue(this, Map.class);
	}

//	@Override
//	public Member toObject(Map<String, Object> map) {
//		ObjectMapper objMapper = new ObjectMapper();
//		return objMapper.convertValue(map, Member.class);
//	}

}
